package com.lhgray.sglhome.domain.usecase

import android.net.Uri
import com.freightoa.foundation.presentation.domain.BaseUseCase
import com.lhgray.sglhome.data.repository.PicUploadRepository
import javax.inject.Inject

class PicUploadUseCase @Inject constructor(private val picUploadRepository: PicUploadRepository) :
    BaseUseCase() {
    suspend operator fun invoke(mutableList: MutableList<Uri>): Boolean {
        return picUploadRepository.uploadPic(mutableList)
            .map { true }.isSuccess
    }
}